#ifndef NIV4_H
#define NIV4_H



#include <netinet/tcp.h> 
#include <netinet/udp.h> 
#include <stdio.h>

#include <arpa/inet.h>
#include "main.h"

#define MIN(x,y) ((x)<(y))?(x):(y)

void printTCP(const u_char* buff, Stats* stats);
void printUDP(const u_char* buff, Stats* stats);




#define PORT_TCP_FTP 20
#define PORT_TCP_FTP2 21
#define PORT_TCP_SSH 22
#define PORT_TCP_TELNET 23
#define PORT_TCP_SMTP 25
#define PORT_UDP_DNS 53
#define PORT_TCP_HTTP 80
#define PORT_TCP_POP3 110
#define PORT_TCP_SFTP 115
#define PORT_UDP_NTP 123
#define PORT_TCP_NETBIOS 135
#define PORT_TCP_NETBIOS1 137
#define PORT_TCP_NETBIOS2 138
#define PORT_TCP_NETBIOS3 139
#define PORT_TCP_NETBIOS4 445
#define PORT_TCP_IMAP 143
#define PORT_UDP_SNMP 161
#define PORT_TCP_BGP 179
#define PORT_TCP_IRC 194
#define PORT_TCP_IMAP3 220
#define PORT_TCP_LDAP 389
#define PORT_TCP_HTTPS 443
#define PORT_UDP_DHCP 546
#define PORT_TCP_MSN 1863
#define PORT_TCP_JABBER 5222
#define PORT_TCP_JABBER2 5223
#define PORT_UDP_MDNS 5353
#define PORT_TCP_SIP 5060
#define PORT_TCP_HTTP2 8080
#define PORT_TCP_IRC_SERV 6667
#define PORT_TCP_IRC_SERV_SSL 6697
#define PORT_TCP_IRC_SERV_SSL2 7000
#define PORT_UDP_DROPBOX 17500
#define PORT_UDP_SSDP 1900

#endif
